//
// Created by ZhangBo on 2019-06-19.
// Copyright (c) 2019 ZhangBo. All rights reserved.
//

import Foundation
import RxSwift
import RxCocoa

struct UserViewModel {
    //用户名
    let username = Variable("guest")

    //用户信息
    lazy var userinfo = {
        return self.username.asObservable().map {
            $0 == "wingsmm" ? "您是管理员" : "您是普通访客"
        }.share(replay: 1)
    }()
}
